<!DOCTYPE html>
<html lang="en">

<head>
    <style>
        .box {
            width: 300px;
            height: 300px;
            background-color: gray;
            padding: 50px;
        }
    </style>
</head>

<body>
    <div class="box" onclick="clickMe();">
        <button>点我</button>
    </div>


    <script>
        function clickMe() {
            var target = event.target; // 点击谁就是谁
            var currentTarget = event.currentTarget; // div
            console.log('被点击的元素是:', target);
            console.log('事件绑定的元素:', currentTarget);
        }
    </script>
</body>

</html>